import time

def get_rongzi_info(mongo_instance, soup, cid, company):
    print('start 融资数据*******')
    for tr in soup.find('div', id='_container_rongzi').find('tbody').find_all('tr') if soup.find('div',
                                                                                                 id='_container_rongzi') else []:
        item = {}
        tds = tr.find_all('td')
        if len(tds) > 4:
            item['date'] = tds[1].text
            item['lunci'] = tds[2].text
            item['guzhi'] = tds[3].text
            item['money'] = tds[4].text
            item['bilv'] = tds[5].text
            item['tzcompany'] = tds[6].text
            item['from'] = tds[7].text
            item['create_at'] = int(time.time())
            item['update_at'] = item['create_at']
            item['company'] = company
            item['company_id'] = cid
            print(item)
            mongo_instance.rongzi.update({'company_id': cid}, item, True)
    print('success 融资历史数据*******')